package com.leetcode.LC;

import java.util.ArrayList;
import java.util.List;

public class LC590 {
    List<Integer> res = new ArrayList<Integer>();
    public List<Integer> postorder(LC559.Node root) {
        if(root == null)
            return res;
        for(LC559.Node child:root.children)
        {
            postorder(child);
        }
        res.add(root.val);
        return res;
    }
}
